package com.spic.business.staff.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.spic.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.spic.common.core.annotation.Excel;

import java.util.Date;

/**
 * 人员基本资料对象 staff_basic_data
 * 
 * @author ruoyi
 * @date 2023-03-23
 */
public class StaffBasicData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 用户账号 */
    @Excel(name = "用户账号")
    private String userName;

    /** 附件名 */
    @Excel(name = "附件名")
    private String fileName;

    /** 附件类型 */
    @Excel(name = "附件类型")
    private String fileType;

    /** 附件大小 （k） */
    @Excel(name = "附件大小 ", readConverterExp = "k=")
    private Long fileSize;

    /** 附件路径 */
    @Excel(name = "附件路径")
    private String fileUrl;

    /** 删除状态 0正常 1删除 */
    @Excel(name = "删除状态 0正常 1删除")
    private String deleteFlag;

    /** 扩展名 */
    @Excel(name = "扩展名")
    private String ext;

    /** 对应platform.sys_file表的id */
    @Excel(name = "对应platform.sys_file表的id")
    private String fileId;

    public Date getExpirationTime() {
        return expirationTime;
    }

    public void setExpirationTime(Date expirationTime) {
        this.expirationTime = expirationTime;
    }

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date expirationTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }
    public void setFileType(String fileType) 
    {
        this.fileType = fileType;
    }

    public String getFileType() 
    {
        return fileType;
    }
    public void setFileSize(Long fileSize) 
    {
        this.fileSize = fileSize;
    }

    public Long getFileSize() 
    {
        return fileSize;
    }
    public void setFileUrl(String fileUrl) 
    {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl() 
    {
        return fileUrl;
    }
    public void setDeleteFlag(String deleteFlag) 
    {
        this.deleteFlag = deleteFlag;
    }

    public String getDeleteFlag() 
    {
        return deleteFlag;
    }
    public void setExt(String ext) 
    {
        this.ext = ext;
    }

    public String getExt() 
    {
        return ext;
    }
    public void setFileId(String fileId) 
    {
        this.fileId = fileId;
    }

    public String getFileId() 
    {
        return fileId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userName", getUserName())
            .append("fileName", getFileName())
            .append("fileType", getFileType())
            .append("fileSize", getFileSize())
            .append("fileUrl", getFileUrl())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("remark", getRemark())
            .append("deleteFlag", getDeleteFlag())
            .append("ext", getExt())
            .append("fileId", getFileId())
            .toString();
    }
}
